package project.sample.protocol.http;

import java.util.List;

/**
 * @author: WUZH009
 * @date: 2019/8/21 14:02
 **/
public interface HttpRequest {

    String METHOD_GET = "GET";
    String METHOD_POST = "POST";
    String METHOD_PUT = "PUT";
    String METHOD_DELETE = "DELETE";
    String METHOD_PATCH = "PATCH";
    String METHOD_HEAD = "HEAD";
    String METHOD_OPTIONS = "OPTIONS";

    List<HttpHeader> headers();

    HttpHeader header(String name);

    String method();

    String uri();

    String host();

    String path();

    byte[] body();

}
